package state.util.array;

public class StringArray {
  public String[] array = null;
  private int size = 0;
  
  public static StringArray create(int len) {
    String[] value1 = new String[len];
    return new StringArray(value1, len);
  }
  
  public static StringArray create1(String str1, String str2) {
    String[] value1 = new String[2];
    value1[0] = str1;
    value1[1] = str2;
    return new StringArray(value1, 2);
  }
  
  public static StringArray create2(String str1, String str2, String str3) {
    String[] value1 = new String[3];
    value1[0] = str1;
    value1[1] = str2;
    value1[2] = str3;
    return new StringArray(value1, 3);
  }
  
  public static StringArray create3(String str1, String str2, String str3, String str4) {
    String[] value1 = new String[4];
    value1[0] = str1;
    value1[1] = str2;
    value1[2] = str3;
    value1[3] = str4;
    return new StringArray(value1, 4);
  }
  
  public static void arraycopy(StringArray src, int srcPos, StringArray dest, int destPos, int length1) {
    System.arraycopy(src.array, srcPos, dest.array, destPos, length1);
  }
  
  public StringArray(String[] value1, int length1) {
    array = value1;
    size = length1;
  }
  
  public int len() {
    return size;
  }
  
  public String get(int i) {
    return array[i];
  }
  
  public void set(int i, String value1) {
    array[i] = value1;
  }
  
  public void setArray(String[] value1, int length1) {
    array = value1;
    size = length1;
  }
}
